<div class="lightbox">

    <h1>Rediger vakt</h1>

    <form enctype="application/x-www-form-urlencoded" method="post" accept-charset="UTF-8" action="<?php echo $this->url(); ?>" id="memberRoleForm">

        <table id="datatable" class="members_for_shift display">
            <thead>
                <tr id="member_role_tr">
                    <th id="first_name" class="memberrolehead">Fornavn</th>
                    <th id="last_name" class="memberrolehead">Etternavn</th>
                    <th class="memberrolehead">Velg</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($this->eligibleMembers as $member) : ?>
                <tr>
                    <td><?php echo $this->escape($member['first_name']); ?></td>
                    <td><?php echo $this->escape($member['last_name']); ?></td>
                    <td><input type="radio" name="member_id" value="<?php echo $member['id']; ?>"></td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
        <input type="submit" name="submit" id="submit_member_role" value="Legg til medlem for rolle" />
    </form>
</div>